Current Location: Home> Function Categories> cosh

cosh

Hyperbolic cosine
Name:cosh
Category:math
Programming Language:php
One-line Description:Hyperbolic cosine.

Definition and usage

cosh() function returns the hyperbolic cosine of a number.

Example

In this example, we will return hyperbolic cosines of different numbers:

 <?php
echo ( cosh ( 3 ) ;
echo ( cosh ( - 3 ) ;
echo ( cosh ( 0 ) ;
echo ( cosh ( M_PI ) ;
echo ( cosh ( 2 * M_PI ) ) ;
?>

Try it yourself

grammar

 cosh ( x )
parameter describe
x Required. A number.

illustrate

Returns the hyperbolic cosine value of x , defined as (exp(arg) + exp(-arg))/2 .

Similar Functions
  • Hyperbolic tangent tanh

    tanh

    Hyperbolictangent
  • Ancient sine asin

    asin

    Ancientsine
  • Leave the method of sorting floor

    floor

    Leavethemethodofsort
  • Calculate the oblique length of a straight triangle hypot

    hypot

    Calculatetheobliquel
  • Arctangle of two parameters atan2

    atan2

    Arctangleoftwoparame
  • Sow a better random number generator seed mt_srand

    mt_srand

    Sowabetterrandomnumb
  • Returns exp(number) - 1, and can calculate the exact result even when the value of number is close to zero. expm1

    expm1

    Returnsexp(number)-1
  • Cosine cos

    cos

    Cosine
Popular Articles